<?php
    $title = 'Them san pham';
    $this->headTitle($title);
    
    $form = $this->form;
    $form->setAttribute('action', $this->url('product' , array('action' => 'add')));
    $form->get('submit')->setAttribute('value' , 'Them');
    $form->prepare();
    echo $this->form()->openTag($form);
?> 
<div class="mainbox col-md-12 col-md-offset-0 col-sm-8 col-sm-offset-2">
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">Tạo san pham</div>                   
        </div>  
        <div class="panel-body" >
            <form id="signupForm" name="signupForm" class="form-horizontal" novalidate>
                <div class="form-group">
                    <label for="name" class="col-md-3">
                        <?php echo $this->formLabel($form->get('name')); ?>
                    </label>
                    <div class="col-md-9">
                        <?php echo $this->formElement($form->get('name'));?>
                        <?php echo $this->formElementErrors($form->get('name')); ?>
                    </div>
                </div>
                
                <div class="form-group">
                    <label for="name" class="col-md-3">
                        <?php echo $this->formLabel($form->get('description')); ?>
                    </label>
                    <div class="col-md-9">
                        <?php echo $this->formElement($form->get('description'));?>
                        <?php echo $this->formElementErrors($form->get('description')); ?>
                    </div>
                </div>
                
                <div class="form-group">
                    <!-- Button -->                                        
                    <div class="col-md-offset-3 col-md-9">
                        <?php echo $this->formElement($form->get('submit')); ?>
                    </div>
                </div>
            </form>
        </div>
    </div>    
</div> 
    